<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>后台管理中心</title>
{$system_css}
        {$system_js}
<script type="text/javascript">
            $(function(){
                //颜色插件
                $("#bn").bigColorpicker("color");
                
                
                $("#myform").validate({
                    rules: {
                        name: "required",
                        en_name:"required",
                        icon:"required",
                        star_num:{
                            number:true,
                            max:10
                        },
                        experience:'required'
                    },
                    messages: {
                        name: "用户组的名称不能为空",
                        en_name:"英文名称不能为空",
                        icon:"ICON不能为空",
                        star_num:{
                            number:"星数必须为数字",
                            max:'必须为0-10的数字'
                        },
                        experience:"经验数不能为空"
                    }
                });
            })
        </script>
</head>
<body>
{include file="message.html"}
<div class="pad-10">
  <div class="common-form">
    <form name="myform" action="#" method="post" id="myform" enctype="MULTIPART/FORM-DATA" >
      <fieldset>
        <legend>基本信息</legend>
        <table width="100%" class="table_form">
          <tr>
            <td width="80"  class="red">用户组名</td>
            <td><input type="text" name="name"  class="input-text" id="name" size="50">
              </input></td>
          </tr>
          <tr>
            <td width="80"  class="red">英文名</td>
            <td><input type="text" name="en_name"  class="input-text" id="en_name" size="50">
              </input></td>
          </tr>
          <tr>
            <td width="80"  class="red">经验数</td>
            <td><input type="text" name="experience"  class="input-text" id="experience" size="20">
              </input></td>
          </tr>
          <tr>
            <td width="80">星级数量</td>
            <td><input type="text" name="star_num"  class="input-text" id="star_num" size="20">
              </input></td>
          </tr>
          <tr>
            <td> 是否禁用 </td>
            <td><label style="width:88px">
                <input type="radio" value="1"  name="active">
                是 </label>
              <label style="width:88px">
                <input type="radio" value="0"   name="active" checked="checked">
                否 </label></td>
          </tr>
          <tr>
            <td width="80">用户名颜色</td>
            <td><input type="text" name="color"  class="input-text color" id="color" size="10">
              </input>
              <input id="bn" type="button" value="选色" /></td>
          </tr>
          <tr>
            <td  class="red">图标</td>
            <td><input type="file" name="icon" id="icon" /></td>
          </tr>
          <tr>
            <td>描述</td>
            <td><textarea  style="width:50%;height:46px;"  name="description"></textarea></td>
          </tr>
          <tr>
            <td>排序</td>
            <td><input type="text" name="position" value="9999" class="input-text" size="10">
              </input></td>
          </tr>
          <tr align="center">
            <td colspan="2"><input type="submit" value="提交" name="dosubmit" class="button"></td>
          </tr>
        </table>
      </fieldset>
    </form>
  </div>
</div>
</body>
</html>